<#include "/lib/macro-lib.ftl"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<#include "../inc/commonJs.html">
<body>
<div align="center" class="easyui-panel" data-options='fit:true,border:false'>
<script src="../../js/calendar.js">
<script>
function formCheck(f){
	if (f.account.value == ""){
		alert("请填写帐户!");
		f.account.focus();
		return false;
	}
	if (f.logprice.value == ""){
		alert("请填写金额!");
		f.logprice.focus();
		return false;
	}
	if (f.type.value == ""){
		alert("请填写类型!");
		f.type.focus();
		return false;
	}
	if (f.user.value == ""){
		alert("请填写用户!");
		f.user.focus();
		return false;
	}
}
<#if ret??>
  alert('${ret}');
</#if>
</script>
<br>
<table width="98%" border="0" cellpadding="4" cellspacing="0" class="table_all">
<form name="frm" method="post" action="logeditact.do" onSubmit="return formCheck(this)">
	<input type="hidden" name="id" value="${obj.id!}">
    <tr> 
      <td width="100" class="td_table_1">日期：</td>
      <td width="*" class="td_table_2"> 
        <input type="text" name="logtime" value="${obj.logtime!}" onclick="calendar.show(this);">
      </td>
    </tr>
    <tr> 
      <td width="100" class="td_table_1">账户：</td>
      <td width="*" class="td_table_2"> 
      	<@radioUtil optName="account" optVals=accounts optVal=obj.account></@radioUtil>
      </td>
    </tr>
    <tr> 
      <td width="100" class="td_table_1">成员：</td>
      <td width="*" class="td_table_2"> 
      	<@radioUtil optName="user" optVals=users optVal=obj.user></@radioUtil>
      </td>
    </tr>
    <tr> 
      <td width="100" class="td_table_1">类型：</td>
      <td width="*" class="td_table_2"> 
      	<@selectUtil optName="type" optVals=types optVal=obj.type all=false>onchange="document.frm.logprice.focus();" class="easyui-combobox"</@selectUtil>
      </td>
    </tr>
    <tr> 
      <td width="100" class="td_table_1">金额：</td>
      <td width="*" class="td_table_2"> 
        <input type="text" name="logprice" value="#{obj.logprice?number; m2}" >
      </td>
    </tr>
     <tr> 
      <td width="100" class="td_table_1">备注：</td>
      <td width="*" class="td_table_2"> 
        <input type="text" name="bz" value="${obj.bz!}" size=50>
      </td>
    </tr>
    <tr> 
      <td width="100" class="td_table_1">状态：</td>
      <td width="*" class="td_table_2"> 
        <select name="zt" class="easyui-combobox">        
        	<option value="1" <#if obj.zt == '1'>selected</#if>>启用</option>
        	<option value="0" <#if obj.zt == '0'>selected</#if>>禁用</option>
        </select>
      </td>
    </tr>
    <tr> 
      <td class="td_table_2">&nbsp;</td>
      <td class="td_table_2"> 
          <input type="submit" class="button_70px" value="保存">&nbsp;&nbsp;&nbsp;&nbsp;
          <input type="button" class="button_70px" value="返回列表" onclick="location.href='loglist.do'">
      </td>
    </tr>
</form>
</table>
</div>
</body>
</html>